<!-- HTML header for doxygen 1.8.14-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="cache-control" content="max-age=86400"/>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GBDK 2020 Docs: gbdk-lib/include/sms/hardware.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GBDK 2020 Docs
   &#160;<span id="projectnumber">4.4.0</span>
   </div>
   <div id="projectbrief">API Documentation for GBDK 2020</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('sms_2hardware_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">hardware.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="sms_2hardware_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#ifndef _HARDWARE_H</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#define _HARDWARE_H</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ab2767d5f8f0ad35d8c8ee0bb3f4c51c3">   10</a></span>&#160;<span class="preprocessor">#define __BYTES extern UBYTE</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a3b39604bdf93a32e9ff965c1a55f0df8">   11</a></span>&#160;<span class="preprocessor">#define __BYTE_REG extern volatile UBYTE</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x00) GG_STATE;  </div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ac47372b55b9220014f56cd5d82ad4f6a">   15</a></span>&#160;<span class="preprocessor">#define GGSTATE_STT    0b10000000</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#afbcd35f381a5a019f0ba68c125a3b0b6">   16</a></span>&#160;<span class="preprocessor">#define GGSTATE_NJAP   0b01000000</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a57ce09982f2d20989540a1c4f207f992">   17</a></span>&#160;<span class="preprocessor">#define GGSTATE_NNTS   0b00100000</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x01) GG_EXT_7BIT;  </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x02) GG_EXT_CTL;  </div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad68641fd6be1f4032c688dcdf9c0ff5e">   23</a></span>&#160;<span class="preprocessor">#define GGEXT_NINIT    0b10000000</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x03) GG_SIO_SEND;  </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x04) GG_SIO_RECV;  </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x05) GG_SIO_CTL;   </div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a48bb341314dd449f124e5a9a91767cc2">   29</a></span>&#160;<span class="preprocessor">#define SIOCTL_TXFL    0b00000001</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2f356619237cafd166d4399d8fca63d8">   30</a></span>&#160;<span class="preprocessor">#define SIOCTL_RXRD    0b00000010</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ae27ff078ad5f80282990bfb1cf5e1d32">   31</a></span>&#160;<span class="preprocessor">#define SIOCTL_FRER    0b00000100</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af6b2cc143f1d9fab08b2d3bdef0e2f1c">   32</a></span>&#160;<span class="preprocessor">#define SIOCTL_INT     0b00001000</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a81b3ebb1ebbac6306433abe460ef51c5">   33</a></span>&#160;<span class="preprocessor">#define SIOCTL_TON     0b00010000</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af89fbd7f16c6bff2f901c7c25e575d21">   34</a></span>&#160;<span class="preprocessor">#define SIOCTL_RON     0b00100000</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af18f1262a706e3c6d105afbca4834ce9">   35</a></span>&#160;<span class="preprocessor">#define SIOCTL_BS0     0b01000000</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a84c7c86e1754d8a7286359d01bab97ad">   36</a></span>&#160;<span class="preprocessor">#define SIOCTL_BS1     0b10000000</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x06) GG_SOUND_PAN; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a8a4901a3e61f815a324b37e7b6f32671">   40</a></span>&#160;<span class="preprocessor">#define SOUNDPAN_TN1R  0b00000001</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aacc641896defa2bf9881929494034e8a">   41</a></span>&#160;<span class="preprocessor">#define SOUNDPAN_TN2R  0b00000010</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a81a154f1bd5456a4e489e96c5a4e2990">   42</a></span>&#160;<span class="preprocessor">#define SOUNDPAN_TN3R  0b00000100</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a4de80c85263c705ad0df9e9c92c0b2df">   43</a></span>&#160;<span class="preprocessor">#define SOUNDPAN_NOSR  0b00001000</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aaa16ce1f58e3ffe5937d721a8c22cdc7">   44</a></span>&#160;<span class="preprocessor">#define SOUNDPAN_TN1L  0b00010000</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2dd3ef5009c788164624e6fa3545a2a4">   45</a></span>&#160;<span class="preprocessor">#define SOUNDPAN_TN2L  0b00100000</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a0236f56bdd69aa9a2321b635d586002e">   46</a></span>&#160;<span class="preprocessor">#define SOUNDPAN_TN3L  0b01000000</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a45b27027ec712d80c1a4c3e0deb548c3">   47</a></span>&#160;<span class="preprocessor">#define SOUNDPAN_NOSL  0b10000000</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x3E) MEMORY_CTL;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af4607245a47e34bd6af5d2d43d7fb30f">   51</a></span>&#160;<span class="preprocessor">#define MEMCTL_JOYON   0b00000000</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad8b8ecb5a71567cabc47af43da5dadf1">   52</a></span>&#160;<span class="preprocessor">#define MEMCTL_JOYOFF  0b00000100</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2a98128eb9ca41477c139988da9d803f">   53</a></span>&#160;<span class="preprocessor">#define MEMCTL_BASEON  0b00000000</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a29d7c3b98f855f88d6bb3f380b301d64">   54</a></span>&#160;<span class="preprocessor">#define MEMCTL_BASEOFF 0b00001000</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af4522efccaecbb6ce47a337f6dbada24">   55</a></span>&#160;<span class="preprocessor">#define MEMCTL_RAMON   0b00000000</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adbfef6bdd2da5ba3901e91062390bb68">   56</a></span>&#160;<span class="preprocessor">#define MEMCTL_RAMOFF  0b00010000</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad729a51cb551d9ee8bfb57c50c9dfd11">   57</a></span>&#160;<span class="preprocessor">#define MEMCTL_CROMON  0b00000000</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a79ca0cc4a9979b2eeaeda61b043b36ae">   58</a></span>&#160;<span class="preprocessor">#define MEMCTL_CROMOFF 0b00100000</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a27b47b593a0d021ab342dfc744403b86">   59</a></span>&#160;<span class="preprocessor">#define MEMCTL_ROMON   0b00000000</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a25882a19ebfb78cd09158a5f743a6409">   60</a></span>&#160;<span class="preprocessor">#define MEMCTL_ROMOFF  0b01000000</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a41654dd6b42ebdd213edc44494855caf">   61</a></span>&#160;<span class="preprocessor">#define MEMCTL_EXTON   0b00000000</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ac4c1790dd7397ef1005190dc01b3e808">   62</a></span>&#160;<span class="preprocessor">#define MEMCTL_EXTOFF  0b10000000</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x3F) JOY_CTL;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#acf2fb483a47d4255340e71e15ede1039">   66</a></span>&#160;<span class="preprocessor">#define JOY_P1_TR_DIR_IN  0b00000001</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#acc1f5e501dedb6e1bcd894540d17fe45">   67</a></span>&#160;<span class="preprocessor">#define JOY_P1_TR_DIR_OUT 0b00000000</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ac7c72d013d98c9dc5d9bb692a0996e8b">   68</a></span>&#160;<span class="preprocessor">#define JOY_P1_TH_DIR_IN  0b00000010</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ac3c003c86831f42296b07753293d5d28">   69</a></span>&#160;<span class="preprocessor">#define GUN_P1_LATCH      JOY_P1_TH_DIR_IN</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#abe3deb9acb92234aff46cb16a3ad542e">   70</a></span>&#160;<span class="preprocessor">#define JOY_P1_TH_DIR_OUT 0b00000000</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a3bf98a0a4e87851f6182183f4bd0fe70">   71</a></span>&#160;<span class="preprocessor">#define JOY_P2_TR_DIR_IN  0b00000100</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a00eece4616e9a27947e44b32c73f423f">   72</a></span>&#160;<span class="preprocessor">#define JOY_P2_TR_DIR_OUT 0b00000000</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ab7f1d5f91e9a0701b45fd53fb7b6e088">   73</a></span>&#160;<span class="preprocessor">#define JOY_P2_TH_DIR_IN  0b00001000</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a12eb13c8571e98e66aeda3dc2ebc28b3">   74</a></span>&#160;<span class="preprocessor">#define GUN_P2_LATCH      JOY_P2_TH_DIR_IN</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa4918bc88d2c143b5c1cd910bff2c2cd">   75</a></span>&#160;<span class="preprocessor">#define JOY_P2_TH_DIR_OUT 0b00000000</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad646083227c47b92ce51b96e651a8546">   76</a></span>&#160;<span class="preprocessor">#define JOY_P1_TR_OUT_HI  0b00010000</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af43dabd79f618e9618498d01eea7a7d4">   77</a></span>&#160;<span class="preprocessor">#define JOY_P1_TR_OUT_LO  0b00000000</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adf447cfc5009d7f3fff53e035a8a5a2c">   78</a></span>&#160;<span class="preprocessor">#define JOY_P1_TH_OUT_HI  0b00100000</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adfa38e32a73b11e8d7ef1e653b0cd04d">   79</a></span>&#160;<span class="preprocessor">#define JOY_P1_TH_OUT_LO  0b00000000</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a60f1e7b76ed6e730b5512dd3bd2df7ae">   80</a></span>&#160;<span class="preprocessor">#define JOY_P2_TR_OUT_HI  0b01000000</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a721fa84c1523794fff483d5bd3150c0a">   81</a></span>&#160;<span class="preprocessor">#define JOY_P2_TR_OUT_LO  0b00000000</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a98b747d6cbbf35710666b25f6a2920ac">   82</a></span>&#160;<span class="preprocessor">#define JOY_P2_TH_OUT_HI  0b10000000</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aac7860442e206a62984720be98272990">   83</a></span>&#160;<span class="preprocessor">#define JOY_P2_TH_OUT_LO  0b00000000</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a9a4879ba6d610a8197aac544201931f6">   85</a></span>&#160;<span class="preprocessor">#define JOY_TH_HI (JOY_P1_TR_DIR_IN | JOY_P1_TH_DIR_OUT | JOY_P2_TR_DIR_IN | JOY_P2_TH_DIR_OUT | JOY_P1_TR_OUT_HI | JOY_P1_TH_OUT_HI | JOY_P2_TR_OUT_HI | JOY_P2_TH_OUT_HI)</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a5e8485d0771c68297999b6e69c9e315c">   86</a></span>&#160;<span class="preprocessor">#define JOY_TH_LO (JOY_P1_TR_DIR_IN | JOY_P1_TH_DIR_OUT | JOY_P2_TR_DIR_IN | JOY_P2_TH_DIR_OUT | JOY_P1_TR_OUT_HI | JOY_P1_TH_OUT_LO | JOY_P2_TR_OUT_HI | JOY_P2_TH_OUT_LO)</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x7E) VCOUNTER;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x7F) PSG;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a6777f1ed2475b5ba6aa60b9a16fa02d3">   92</a></span>&#160;<span class="preprocessor">#define PSG_LATCH      0b10000000</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad8a903de6b38e08e1591fc5ef278381c">   94</a></span>&#160;<span class="preprocessor">#define PSG_CH0        0b00000000</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#addc12c4ee03ea787b826e337f1acd317">   95</a></span>&#160;<span class="preprocessor">#define PSG_CH1        0b00100000</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aaeefb1ac1fb4d0d2324b8ee7f4953226">   96</a></span>&#160;<span class="preprocessor">#define PSG_CH2        0b01000000</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ac760259fb86ee72abb5922018ae0db42">   97</a></span>&#160;<span class="preprocessor">#define PSG_CH3        0b01100000</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a3d806ff027bffa67c4dfc5967f87c1d1">   99</a></span>&#160;<span class="preprocessor">#define PSG_VOLUME     0b00010000</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0x7F) HCOUNTER;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xBE) VDP_DATA;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xBF) VDP_CMD;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xBF) VDP_STATUS;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a4702e74fffdc57d60c3835e63c665cc1">  107</a></span>&#160;<span class="preprocessor">#define STATF_INT_VBL  0b10000000</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a4a7b807e5e5987302a5315fe5c815ce8">  108</a></span>&#160;<span class="preprocessor">#define STATF_9_SPR    0b01000000</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a6fdd982d805d5af6de0417e24faf027d">  109</a></span>&#160;<span class="preprocessor">#define STATF_SPR_COLL 0b00100000</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a99ca7572e3708ffed188359799045b19">  111</a></span>&#160;<span class="preprocessor">#define VDP_REG_MASK   0b10000000</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a673a19a1e353c852003c54d1d110b5e6">  112</a></span>&#160;<span class="preprocessor">#define VDP_R0         0b10000000</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#aa80cb68338819c004095531d32b70e38">shadow_VDP_R0</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a283c5cad8b93ee7e72ad07aabb9bf522">  115</a></span>&#160;<span class="preprocessor">#define R0_VSCRL       0b00000000</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a65fa6547c2cd80b353a0b266cd834ff0">  116</a></span>&#160;<span class="preprocessor">#define R0_VSCRL_INH   0b10000000</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a61143072ad490ff0050177e7b4b2dd40">  117</a></span>&#160;<span class="preprocessor">#define R0_HSCRL       0b00000000</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a5c238a0b81716020b92cf851b2498b96">  118</a></span>&#160;<span class="preprocessor">#define R0_HSCRL_INH   0b01000000</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#acdd680365862fb618641818646edeb7e">  119</a></span>&#160;<span class="preprocessor">#define R0_NO_LCB      0b00000000</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a83088549f6d87bf5ccb8bf51dfe7ea7b">  120</a></span>&#160;<span class="preprocessor">#define R0_LCB         0b00100000</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a56819f822caf1e545ff803d41cac3ede">  121</a></span>&#160;<span class="preprocessor">#define R0_IE1_OFF     0b00000000</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ae9ab439a46f9918cc24453cd65f95202">  122</a></span>&#160;<span class="preprocessor">#define R0_IE1         0b00010000</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a10e6ffa0580e9956440f4259a3e79a38">  123</a></span>&#160;<span class="preprocessor">#define R0_SS_OFF      0b00000000</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ada8068942691b363f9004ccfd0cb8e82">  124</a></span>&#160;<span class="preprocessor">#define R0_SS          0b00001000</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af69775608c5d3218fb769c4fb370685f">  125</a></span>&#160;<span class="preprocessor">#define R0_DEFAULT     0b00000110</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aebdf04065a0abf79ae8e1016d03caa1f">  126</a></span>&#160;<span class="preprocessor">#define R0_ES_OFF      0b00000000</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a07d8e5a18c957c482218804ab764dab9">  127</a></span>&#160;<span class="preprocessor">#define R0_ES          0b00000001</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a413fdabdacfcda90cc73a04311a2ec6d">  129</a></span>&#160;<span class="preprocessor">#define VDP_R1         0b10000001</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a542cb696f242df44b0d8e9225d532ef4">shadow_VDP_R1</a>;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a490562a6e4b57d7bf25e8fed3b3f6905">  132</a></span>&#160;<span class="preprocessor">#define R1_DEFAULT     0b10000000</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a143660061646a3f502d03a2251575588">  133</a></span>&#160;<span class="preprocessor">#define R1_DISP_OFF    0b00000000</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adbfdd7c42539613c371820dffd14906f">  134</a></span>&#160;<span class="preprocessor">#define R1_DISP_ON     0b01000000</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adf542fd9d2bf9affc6016718e3885473">  135</a></span>&#160;<span class="preprocessor">#define R1_IE_OFF      0b00000000</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a29a2945a9e77ba1f003a2305b7500568">  136</a></span>&#160;<span class="preprocessor">#define R1_IE          0b00100000</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa4062707b9b0f9ff5d1ee982ccc42fe7">  137</a></span>&#160;<span class="preprocessor">#define R1_SPR_8X8     0b00000000</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a4985d6df1031afe8efb993f9c480ca12">  138</a></span>&#160;<span class="preprocessor">#define R1_SPR_8X16    0b00000010</span></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2c9f91fcf2aad494a80e967f0c4bb414">  140</a></span>&#160;<span class="preprocessor">#define VDP_R2         0b10000010</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a7f7fa2c0e33c6d515332a50c2acb54e7">shadow_VDP_R2</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a8ce8807a3666fa8c7c93d4834ab22fe3">  143</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x3800  0xFF</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a725647b41b3c8083a7ae8db762ffc880">  144</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x3000  0xFD</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a43ae738f82e8c6e84d30a96fb9c2c792">  145</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x2800  0xFB</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa2c53c6a4d12fb0614c1a18c015e39af">  146</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x2000  0xF9</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a08fade3bc2afb94785b0ac50d6959faa">  147</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x1800  0xF7</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a43a631b4692a370b2db6b9d5fc2512e1">  148</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x1000  0xF5</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a64cfebfe759bacd1424ad147931ff5a3">  149</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x0800  0xF3</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#acf804b73635a1bfeb04b7dbeafb7fd9f">  150</a></span>&#160;<span class="preprocessor">#define R2_MAP_0x0000  0xF1</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2a58ae82037e16756404df4820a23f47">  152</a></span>&#160;<span class="preprocessor">#define VDP_R3         0b10000011</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#ab984056ff9eb011fbd84abdafb3a8bce">shadow_VDP_R3</a>;</div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a5d1f215594c86a9e3d670f5a7f89e301">  154</a></span>&#160;<span class="preprocessor">#define VDP_R4         0b10000100</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#af9a30a728fedbe7e4c660c448c262e2c">shadow_VDP_R4</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a75e2c9878fe4cc7c86f71d8e8fa09924">  156</a></span>&#160;<span class="preprocessor">#define VDP_R5         0b10000101</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a221db76cb39200a948234330ed309af7">shadow_VDP_R5</a>;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ae973ce797203f9e4bebc10f5010a8fdd">  159</a></span>&#160;<span class="preprocessor">#define R5_SAT_0x3F00  0xFF</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a6d486af22f8fa4bfa2456205dd5a2ce0">  160</a></span>&#160;<span class="preprocessor">#define R5_SAT_0x1F00  0xBF</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ab0ea6874bcc910239b098025c9761c01">  161</a></span>&#160;<span class="preprocessor">#define R5_SAT_MASK    0b10000001</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a81ae7462829d0fcc65c3c99194a68772">  163</a></span>&#160;<span class="preprocessor">#define VDP_R6         0b10000110</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a8afbdaaf8c6dee4e7482a341351344b4">shadow_VDP_R6</a>;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a1aba84d3beebe43e641766525630d0ad">  166</a></span>&#160;<span class="preprocessor">#define R6_BANK0       0xFB</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a81289f179bb00ade9e4f7221ddff0e46">  167</a></span>&#160;<span class="preprocessor">#define R6_DATA_0x0000 0xFB</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adcc51095e67b158df848367761d735a4">  168</a></span>&#160;<span class="preprocessor">#define R6_BANK1       0xFF</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ac59ac38e5ec2e23e511f854403d7cbe4">  169</a></span>&#160;<span class="preprocessor">#define R6_DATA_0x2000 0xFF</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa82ab1c04cff3363327f3309d09ae638">  171</a></span>&#160;<span class="preprocessor">#define VDP_R7         0b10000111</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a33b3e7c120a579cb729caf588ba1d9a8">shadow_VDP_R7</a>;</div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#abef00e3cae6f12d97973b318ebbf9737">  173</a></span>&#160;<span class="preprocessor">#define VDP_RBORDER    0b10000111</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a20a977182f6f5f60ee6464e15f05aed0">shadow_VDP_RBORDER</a>;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa1a024a7dc26ef40663fe283565bcf50">  176</a></span>&#160;<span class="preprocessor">#define R7_COLOR_MASK  0b11110000</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a3cb38487469808e023fcb331c180c4b9">  178</a></span>&#160;<span class="preprocessor">#define VDP_R8         0b10001000</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#add65b8e5f0b806e563ce27de7348ba31">shadow_VDP_R8</a>;</div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a9c49833bc96a70b8972027d28c816d2f">  180</a></span>&#160;<span class="preprocessor">#define VDP_RSCX       0b10001000</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#af6a84b0288b045560f83a1944a8c1c3b">shadow_VDP_RSCX</a>;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a294388f3d14b6fec1f1bbeafc7d0f91e">  183</a></span>&#160;<span class="preprocessor">#define VDP_R9         0b10001001</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a1ccce1e3f8acb76170fb752ee40ae659">shadow_VDP_R9</a>;</div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a3cce162b45d638126c478c5b6f7bcbc7">  185</a></span>&#160;<span class="preprocessor">#define VDP_RSCY       0b10001001</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a292b59055beb22b566b39462da3b7eba">shadow_VDP_RSCY</a>;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a1049d2a3f634380f4dffff619334a504">  188</a></span>&#160;<span class="preprocessor">#define VDP_R10        0b10001010</span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="keyword">extern</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#af310a900e3b4b5b5032f4ffd6fa309b0">shadow_VDP_R10</a>;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a98d635ed568cfe9f853eaf7e1707dec4">  191</a></span>&#160;<span class="preprocessor">#define R10_INT_OFF    0xFF</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#adf9e7ec5362058df23e1c0e4c06ad5d6">  192</a></span>&#160;<span class="preprocessor">#define R10_INT_EVERY  0x00</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xDC) JOY_PORT1;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a086bde6bcc92e5f4d3e9ae45f0de475e">  196</a></span>&#160;<span class="preprocessor">#define JOY_P1_UP       0b00000001</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af244d638f4db12f660dd32b997e91e11">  197</a></span>&#160;<span class="preprocessor">#define JOY_P1_MD_Z     JOY_P1_UP</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ab4dd6ee624c6d9e5fe5820ce925ffb20">  198</a></span>&#160;<span class="preprocessor">#define JOY_P1_DOWN     0b00000010</span></div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ab3ff8c66ead462c409f958d6fdc5af6e">  199</a></span>&#160;<span class="preprocessor">#define JOY_P1_MD_Y     JOY_P1_DOWN</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a7d709160cbd7b369109bf40161ae8ccd">  200</a></span>&#160;<span class="preprocessor">#define JOY_P1_LEFT     0b00000100</span></div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a4a60772608d327efc401414cde12f105">  201</a></span>&#160;<span class="preprocessor">#define JOY_P1_MD_X     JOY_P1_LEFT</span></div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a1efece9134651ad4d2bd1836c1d1d6d6">  202</a></span>&#160;<span class="preprocessor">#define JOY_P1_RIGHT    0b00001000</span></div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad635a7e21395f97b808043c31a4d8ed4">  203</a></span>&#160;<span class="preprocessor">#define JOY_P1_MD_MODE  JOY_P1_RIGHT</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aacc8667a6d5d9683ed4876e52aba2d33">  204</a></span>&#160;<span class="preprocessor">#define JOY_P1_SW1      0b00010000</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#af29f72f4cc7c94deae5fb9c29b1cc94f">  205</a></span>&#160;<span class="preprocessor">#define JOY_P1_TRIGGER  JOY_P1_SW1</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2dbb102814a7dc03644b5d221f2c73c3">  206</a></span>&#160;<span class="preprocessor">#define JOY_P1_MD_A     JOY_P1_SW1</span></div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a9ab9954d0c66751a154f7824e344806b">  207</a></span>&#160;<span class="preprocessor">#define JOY_P1_SW2      0b00100000</span></div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a968bb53d50d7b5f05bb5e7a3655b7149">  208</a></span>&#160;<span class="preprocessor">#define JOY_P1_MD_START JOY_P1_SW2</span></div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a307ba8e12d9273a99aa4830c5e0a3c88">  209</a></span>&#160;<span class="preprocessor">#define JOY_P2_UP       0b01000000</span></div>
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a70c850caa486e2d918ff840e2c800c6f">  210</a></span>&#160;<span class="preprocessor">#define JOY_P2_MD_Z     JOY_P2_UP</span></div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a6d4129d670d421656f5e9a1f4b68a7f4">  211</a></span>&#160;<span class="preprocessor">#define JOY_P2_DOWN     0b10000000</span></div>
<div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ab1d8a358883596292314daccc41ac1c7">  212</a></span>&#160;<span class="preprocessor">#define JOY_P2_MD_Y     JOY_P2_DOWN</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160; </div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xDD) JOY_PORT2;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a2121cb75e0d570b0f92c7630bc1af25f">  216</a></span>&#160;<span class="preprocessor">#define JOY_P2_LEFT     0b00000001</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ae1c7fec90fd70e2d46d5406f143c81aa">  217</a></span>&#160;<span class="preprocessor">#define JOY_P2_MD_X     JOY_P2_LEFT</span></div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a16dac3d386b8bc0da50c6c814952472d">  218</a></span>&#160;<span class="preprocessor">#define JOY_P2_RIGHT    0b00000010</span></div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a44ba6ef52f90639615896648a16515e4">  219</a></span>&#160;<span class="preprocessor">#define JOY_P2_MD_MODE  JOY_P2_RIGHT</span></div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a942e3ecdef267100c84a36f6e0dc0b51">  220</a></span>&#160;<span class="preprocessor">#define JOY_P2_SW1      0b00000100</span></div>
<div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#afe5ec4ca4d413ae5388be131d9c4f93b">  221</a></span>&#160;<span class="preprocessor">#define JOY_P2_TRIGGER  JOY_P2_SW1</span></div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#aa3f5e3ff57096ccb1d0eafe10080a119">  222</a></span>&#160;<span class="preprocessor">#define JOY_P2_MD_A     JOY_P2_SW1</span></div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a6d181ce63ff84bd559d13f4423a336b3">  223</a></span>&#160;<span class="preprocessor">#define JOY_P2_SW2      0b00001000</span></div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a676844ac296c12225b7b7dd26b9832d8">  224</a></span>&#160;<span class="preprocessor">#define JOY_P2_MD_START JOY_P2_SW2</span></div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a5b3dff084cbb77646a337d94d16a1714">  225</a></span>&#160;<span class="preprocessor">#define JOY_RESET       0b00010000</span></div>
<div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a772c8def7b33ad4fd3cbfc74d84441de">  226</a></span>&#160;<span class="preprocessor">#define JOY_P1_LIGHT    0b01000000</span></div>
<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a42ded04442bd4fb4acf5333b248423fa">  227</a></span>&#160;<span class="preprocessor">#define JOY_P2_LIGHT    0b10000000</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xF0) FMADDRESS;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xF1) FMDATA;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xF2) AUDIOCTRL;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160; </div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfffc) RAM_CONTROL;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; </div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a8f4dbe8a2e6389c78b9f6fb9a3ff1dca">  235</a></span>&#160;<span class="preprocessor">#define RAMCTL_BANK    0b00000100</span></div>
<div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a0167c8f86de8ef1a327b806c8ed0c64c">  236</a></span>&#160;<span class="preprocessor">#define RAMCTL_ROM     0b00000000</span></div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a8728acabf97eae3322439bc3cb41b02d">  237</a></span>&#160;<span class="preprocessor">#define RAMCTL_RAM     0b00001000</span></div>
<div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#afa9ebb221cf9cd92038131ab588679bf">  238</a></span>&#160;<span class="preprocessor">#define RAMCTL_RO      0b00010000</span></div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a97eb5adb5f29e17ce5766728447317f5">  239</a></span>&#160;<span class="preprocessor">#define RAMCTL_PROT    0b10000000</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; </div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;<span class="keyword">static</span> <span class="keyword">volatile</span> <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfff8) GLASSES_3D;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160; </div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfffd) MAP_FRAME0;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xfffe) MAP_FRAME1;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;static volatile <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a>(0xffff) MAP_FRAME2;</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160; </div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;extern volatile <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="gb_2hardware_8h.html#a9d295bb437953de5ebcb3c12d65743aa">TIMA_REG</a>;</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;extern volatile <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="gb_2hardware_8h.html#a39e5a5b9afd2c2ca78de4aba7ccd071c">TMA_REG</a>;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;extern volatile <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="gb_2hardware_8h.html#a659173ac2c8da7fd04bc77973eb95256">TAC_REG</a>;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;extern volatile <a class="code" href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a> <a class="code" href="msx_2hardware_8h.html#a019bf78a6d586c987aec03af8d20e02f">VDP_ATTR_SHIFT</a>;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a6b6b917fd4f396ba028bb18631165781">  253</a></span>&#160;<span class="preprocessor">#define VBK_TILES      0</span></div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a418a105f4c7d4bf1cbc556eab72c27ca">  254</a></span>&#160;<span class="preprocessor">#define VBK_ATTRIBUTES 1</span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160; </div>
<div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad3b833661b103edc2648258dd741c92c">  256</a></span>&#160;<span class="preprocessor">#define VDP_SAT_TERM   0xD0</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; </div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="preprocessor">#if defined(__TARGET_sms)</span></div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_X_OFFSET 0</span></div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_Y_OFFSET 0</span></div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_WIDTH 32</span></div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_HEIGHT 24</span></div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_BUFFER_WIDTH 32</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_BUFFER_HEIGHT 28</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_MAP_ENTRY_SIZE 2</span></div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;<span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_X 0</span></div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;<span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_Y -1</span></div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;<span class="preprocessor">#define DEVICE_WINDOW_PX_OFFSET_X 0</span></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="preprocessor">#define DEVICE_WINDOW_PX_OFFSET_Y 0</span></div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<span class="preprocessor">#elif defined(__TARGET_gg)</span></div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_X_OFFSET 6</span></div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_Y_OFFSET 3</span></div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_WIDTH 20</span></div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_HEIGHT 18</span></div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_BUFFER_WIDTH 32</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_BUFFER_HEIGHT 28</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_MAP_ENTRY_SIZE 2</span></div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;<span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_X 48</span></div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;<span class="preprocessor">#define DEVICE_SPRITE_PX_OFFSET_Y 23</span></div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="preprocessor">#define DEVICE_WINDOW_PX_OFFSET_X 0</span></div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="preprocessor">#define DEVICE_WINDOW_PX_OFFSET_Y 0</span></div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;<span class="preprocessor">#error Unrecognized port</span></div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#ad14c51cdfb347c34c364f54e67dc978d">  285</a></span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8)</span></div>
<div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="sms_2hardware_8h.html#a7bd450aa268b881257089cf8cd6697ec">  286</a></span>&#160;<span class="preprocessor">#define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8)</span></div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aasm_2types_8h_html_a280213815420791851f7e59bdc8a3c95"><div class="ttname"><a href="asm_2types_8h.html#a280213815420791851f7e59bdc8a3c95">UBYTE</a></div><div class="ttdeci">UINT8 UBYTE</div><div class="ttdef"><b>Definition:</b> types.h:62</div></div>
<div class="ttc" id="aasm_2types_8h_html_a66d3e9555a86fa871932c5f60834c67e"><div class="ttname"><a href="asm_2types_8h.html#a66d3e9555a86fa871932c5f60834c67e">AT</a></div><div class="ttdeci">#define AT(A)</div><div class="ttdef"><b>Definition:</b> types.h:35</div></div>
<div class="ttc" id="aasm_2types_8h_html_afb3731986211fded0a874086c98ffcc4"><div class="ttname"><a href="asm_2types_8h.html#afb3731986211fded0a874086c98ffcc4">SFR</a></div><div class="ttdeci">#define SFR</div><div class="ttdef"><b>Definition:</b> types.h:34</div></div>
<div class="ttc" id="agb_2hardware_8h_html_a39e5a5b9afd2c2ca78de4aba7ccd071c"><div class="ttname"><a href="gb_2hardware_8h.html#a39e5a5b9afd2c2ca78de4aba7ccd071c">TMA_REG</a></div><div class="ttdeci">__REG TMA_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:92</div></div>
<div class="ttc" id="agb_2hardware_8h_html_a659173ac2c8da7fd04bc77973eb95256"><div class="ttname"><a href="gb_2hardware_8h.html#a659173ac2c8da7fd04bc77973eb95256">TAC_REG</a></div><div class="ttdeci">__REG TAC_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:94</div></div>
<div class="ttc" id="agb_2hardware_8h_html_a9d295bb437953de5ebcb3c12d65743aa"><div class="ttname"><a href="gb_2hardware_8h.html#a9d295bb437953de5ebcb3c12d65743aa">TIMA_REG</a></div><div class="ttdeci">__REG TIMA_REG</div><div class="ttdef"><b>Definition:</b> hardware.h:90</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a019bf78a6d586c987aec03af8d20e02f"><div class="ttname"><a href="msx_2hardware_8h.html#a019bf78a6d586c987aec03af8d20e02f">VDP_ATTR_SHIFT</a></div><div class="ttdeci">volatile UBYTE VDP_ATTR_SHIFT</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a1ccce1e3f8acb76170fb752ee40ae659"><div class="ttname"><a href="msx_2hardware_8h.html#a1ccce1e3f8acb76170fb752ee40ae659">shadow_VDP_R9</a></div><div class="ttdeci">UBYTE shadow_VDP_R9</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a20a977182f6f5f60ee6464e15f05aed0"><div class="ttname"><a href="msx_2hardware_8h.html#a20a977182f6f5f60ee6464e15f05aed0">shadow_VDP_RBORDER</a></div><div class="ttdeci">UBYTE shadow_VDP_RBORDER</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a221db76cb39200a948234330ed309af7"><div class="ttname"><a href="msx_2hardware_8h.html#a221db76cb39200a948234330ed309af7">shadow_VDP_R5</a></div><div class="ttdeci">UBYTE shadow_VDP_R5</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a292b59055beb22b566b39462da3b7eba"><div class="ttname"><a href="msx_2hardware_8h.html#a292b59055beb22b566b39462da3b7eba">shadow_VDP_RSCY</a></div><div class="ttdeci">UBYTE shadow_VDP_RSCY</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a33b3e7c120a579cb729caf588ba1d9a8"><div class="ttname"><a href="msx_2hardware_8h.html#a33b3e7c120a579cb729caf588ba1d9a8">shadow_VDP_R7</a></div><div class="ttdeci">UBYTE shadow_VDP_R7</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a542cb696f242df44b0d8e9225d532ef4"><div class="ttname"><a href="msx_2hardware_8h.html#a542cb696f242df44b0d8e9225d532ef4">shadow_VDP_R1</a></div><div class="ttdeci">UBYTE shadow_VDP_R1</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a7f7fa2c0e33c6d515332a50c2acb54e7"><div class="ttname"><a href="msx_2hardware_8h.html#a7f7fa2c0e33c6d515332a50c2acb54e7">shadow_VDP_R2</a></div><div class="ttdeci">UBYTE shadow_VDP_R2</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_a8afbdaaf8c6dee4e7482a341351344b4"><div class="ttname"><a href="msx_2hardware_8h.html#a8afbdaaf8c6dee4e7482a341351344b4">shadow_VDP_R6</a></div><div class="ttdeci">UBYTE shadow_VDP_R6</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_aa80cb68338819c004095531d32b70e38"><div class="ttname"><a href="msx_2hardware_8h.html#aa80cb68338819c004095531d32b70e38">shadow_VDP_R0</a></div><div class="ttdeci">UBYTE shadow_VDP_R0</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_ab984056ff9eb011fbd84abdafb3a8bce"><div class="ttname"><a href="msx_2hardware_8h.html#ab984056ff9eb011fbd84abdafb3a8bce">shadow_VDP_R3</a></div><div class="ttdeci">UBYTE shadow_VDP_R3</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_add65b8e5f0b806e563ce27de7348ba31"><div class="ttname"><a href="msx_2hardware_8h.html#add65b8e5f0b806e563ce27de7348ba31">shadow_VDP_R8</a></div><div class="ttdeci">UBYTE shadow_VDP_R8</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_af310a900e3b4b5b5032f4ffd6fa309b0"><div class="ttname"><a href="msx_2hardware_8h.html#af310a900e3b4b5b5032f4ffd6fa309b0">shadow_VDP_R10</a></div><div class="ttdeci">UBYTE shadow_VDP_R10</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_af6a84b0288b045560f83a1944a8c1c3b"><div class="ttname"><a href="msx_2hardware_8h.html#af6a84b0288b045560f83a1944a8c1c3b">shadow_VDP_RSCX</a></div><div class="ttdeci">UBYTE shadow_VDP_RSCX</div></div>
<div class="ttc" id="amsx_2hardware_8h_html_af9a30a728fedbe7e4c660c448c262e2c"><div class="ttname"><a href="msx_2hardware_8h.html#af9a30a728fedbe7e4c660c448c262e2c">shadow_VDP_R4</a></div><div class="ttdeci">UBYTE shadow_VDP_R4</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
</div>
</body>
</html>
